package com.spa.infrastructure.common;

/**
 * 状态码.
 *
 * @author liangjun
 */
public enum CommonCode {
    /**
     * 请求成功.
     */
    SUCCESS("200", "请求成功"),
    FAIL("99", "系统开小差请稍后再试"),
    PARAM_ERROR("100", "请确认入参是否正确"),
    MASSAGIST_ALREADY_EXIST("101", "技师已存在"),
    UN_LOGIN("401", "未登录"),
    HINT_REFRESH("8001", "提示刷新"),
    ;


    private final String code;
    private final String description;

    CommonCode(String code, String description) {
        this.code = code;
        this.description = description;
    }

    /**
     * code.
     */
    public String getCode() {
        return this.code;
    }

    /**
     * 描述.
     */
    public String getDescription() {
        return this.description;
    }
}